package com.demo.behavioral.responsibility;

public class DotTeller extends Handler{

	@Override
	public void handleRequest(String request) {
		if ("银行开户".equals(request)) {   
			System.out.println("银行柜员开户信息接收，提交下一处理");
			successor.handleRequest("银行开户");    
		}else if("银行同意开户".equals(request)){
			System.out.println("办理银行开户");
		}
	}

}
